/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package examples;

import java.text.DecimalFormat;

/**
 *
 * @author lobho
 */
public class DecFormatter {
    
    public static void main(String []a){
        DecimalFormat myFormatter = new DecimalFormat("###.##");
        String output = myFormatter.format(123456.125567854321);
        System.out.println(output);
    }
}
